<%--
  Created by IntelliJ IDEA.
  User: Wy
  Date: 2022/5/12
  Time: 23:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>OUT对象</h2>
<%
    out.println("打打");
    out.println("dsada");
    out.println("dadsa");
    out.flush();

    response.getWriter().println("dsadada");
    response.getWriter().println("dasdasdddd");
%>
<%
//    pageContext.setAttribute("uname", "tom");
    String uname = (String) pageContext.getAttribute("uname");
    out.println(uname);
    //pageContext.removeAttribute("uname");
    pageContext.setAttribute("see", "see" ,pageContext.SESSION_SCOPE);
    //
    //session.setAttribute();
    pageContext.setAttribute("res", "res",pageContext.REQUEST_SCOPE);
    //request.setAttribute();
    pageContext.setAttribute("app", "app",pageContext.APPLICATION_SCOPE);
    //application.setAttribute();

   String see = (String) pageContext.getAttribute("see", PageContext.SESSION_SCOPE);
   out.println(see);
    String  see1 = (String) pageContext.findAttribute("see");
    out.println(see1);



%>

</body>
</html>
